<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var moveDepotEditUrl="{:U('Stock/moveDepotSave')}";//更新数据
	var getmoveDepotUrl="{:U('Stock/get_moveDepot')}";
	var moveDepotDelUrl="{:U('Stock/moveDepotDel')}";
	var moveDepotExamineUrl="{:U('Stock/examinemoveDepot')}";
	var moveDepotClearUrl="{:U('Stock/moveDepotClear')}";
	var moveDepotUndoUrl="{:U('Stock/moveDepotUndo')}";
	var booksInfoUrl="{:U('Depot/booksCateInfo')}";
	var moveDepotInfoUrl="{:U('Stock/moveDepotInfo')}";//调拨单详情
	var erpId="{:I('id')}";	//erp企业对应id
	<!-- var moveDepot_order_no="{$order_no}";//单号 -->
	
	<!-- var moveDepotpushoutUrl="{:U('Stock/pushDepotOut')}";//出库 -->
	var moveDepotpushoutUrl="{:U('Stock/outbound_moveDepot')}";//出库
	var moveDepotpushinUrl="{:U('Stock/pushDepotInbound')}";//推送仓库
	
	var moveDepot_ordernoUrl="{:U('Stock/ajax_movedepot_orderno')}";//ajax入库单号
	<!-- using('../../../default/js/moveDepot.js'); -->
</script>
<script type="text/javascript" src="__PUBLIC__/default/js/moveDepot.js"></script>

	<table id="moveDepotDatagrid" toolbar="#moveDepot_tb"></table>
	<!-- 添加 -->
	<div id="moveDepotAddDialog" class="easyui-dialog" title="规则添加" style="width:500px;padding:10px 20px"
        closed="true" buttons="#moveDepotAddButtons"  modal="true">
         <form id="moveDepotAddForm" method="post" novalidate>
			<div class="fitem">
                <label>单号</label>
                <input name="order_no" id="moveDepot_order_no" class="easyui-textbox" style="background:#ccc;" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[2,30]']" />
            </div>
            <div class="fitem">
                <label>申请部门</label>
                <select class="easyui-combobox" name="section_no" id="moveDepot_section_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="sectionlist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>制单人</label>
                <select class="easyui-combobox" name="people_make_no" id="moveDepot_people_make_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>申请人</label>
                <select class="easyui-combobox" name="people_purchasing_no" id="moveDepot_people_purchasing_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<div class="fitem">
                <label>往来单位</label>
                <select class="easyui-combobox" name="contacts_company_no" id="moveDepot_contactsCompany" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="contactsCompanylist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<div class="fitem">
                <label>目标仓库</label>
                <select class="easyui-combobox" name="depot_code" id="moveDepot_depot_code" style="width:170px;height:30px;" data-options="required:true,editable:false,panelHeight:'200',validType:['length[2,30]','selected[]']">
                    <volist name="depotlist" id="vo">
                        <option value="{$vo['code']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
         </form>
    </div>
    <div id="moveDepotAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="moveDepotObj.add('{:U('Stock/moveDepotAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#moveDepotAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑 -->
    <div id="moveDepotEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#moveDepotEditButtons"  modal="true">
        <form id="moveDepotEditForm" method="post" novalidate>          
            <div class="fitem">
                <label>单号</label>
				 <input name="id"  type="hidden" />
                <input name="order_no" class="easyui-textbox" data-options="readonly:true,required:true,disabled:true,delay:1000,height:30" />
            </div>
            <div class="fitem">
                <label>申请部门</label>
                <select class="easyui-combobox" name="section_no" id="moveDepot_section_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="sectionlist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>制单人</label>
                <select class="easyui-combobox" name="people_make_no" id="moveDepot_people_make_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>
            </div>
			<div class="fitem">
                <label>申请人</label>
                <select class="easyui-combobox" name="people_purchasing_no" id="moveDepot_people_purchasing_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="personnellist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<div class="fitem">
                <label>往来单位</label>
                <select class="easyui-combobox" name="contacts_company_no" style="width:70px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="contactsCompanylist" id="vo">
                        <option value="{$vo['no']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
			<div class="fitem">
                <label>目标仓库</label>
                <select class="easyui-combobox" name="depot_code" id="moveDepot_depot_code" style="width:170px;height:30px;" data-options="required:true,editable:false,panelHeight:'false',validType:['length[2,30]','selected[]']">
                    <volist name="depotlist" id="vo">
                        <option value="{$vo['code']}">{$vo['name']}</option>
                    </volist>
                </select>   
            </div>
        </form>
    </div>
    <div id="moveDepotEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="moveDepotObj.save('{:U('Stock/moveDepotSave')}')" style="width:90px">更新</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#moveDepotEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->
    <!-- 搜索栏 -->
    <div id="moveDepot_tb">
        <form id="moveDepotSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="moveDepotObj.showAll()">全部</a>     
			 单号:<input class="easyui-textbox" name="order_no" style="width:150px;height:30px;"> 
			 申请人:<select class="easyui-combobox" name="people_purchasing_no"  style="width:70px;height:30px;" >
						<volist name="personnellist" id="vo">
							<option value="{$vo['no']}">{$vo['name']}</option>
						</volist>
					</select> 
			 制单人:<select class="easyui-combobox" name="people_make_no"  style="width:70px;height:30px;" >
						<volist name="personnellist" id="vo">
							<option value="{$vo['no']}">{$vo['name']}</option>
						</volist>
					</select> 
			 目标仓库:
			 <select class="easyui-combobox" name="depot_code" style="width:170px;height:30px;">
                 <volist name="depotlist" id="vo">
                     <option value="{$vo['code']}">{$vo['name']}</option>
                 </volist>
             </select>  
			<a href="#" class="easyui-linkbutton searchBar" iconCls="icon-search" style="height:30px;">搜索</a>
        </form>
		<a href="javascript:void(0)" onclick="moveDepotObj.infoBar()" class="easyui-linkbutton" data-options="iconCls:'icon-information',plain:true">详情</a>
		
		<a href="javascript:void(0)" onclick="moveDepotObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
        <a href="javascript:void(0)" onclick="moveDepotObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">修改</a>
        <a href="javascript:void(0)" onclick="moveDepotObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="moveDepotObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="moveDepotObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a>
        <a href="javascript:void(0)" onclick="moveDepotObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="moveDepotObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#moveDepot_mm1',iconCls:'icon-recycle'">回收站</a>
		<div id="moveDepot_mm1" style="width:150px;">
			<div onclick="moveDepotObj.recycle()">查看</div>
			<div onclick="moveDepotObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div>
			<div onclick="moveDepotObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div>
		</div>
		<a href="javascript:void(0)" onclick="moveDepotObj.pushOutBar()" class="easyui-linkbutton" data-options="iconCls:'icon-door_out',plain:true">出库</a>
		<a href="javascript:void(0)" onclick="moveDepotObj.pushInBar()" class="easyui-linkbutton" data-options="iconCls:'icon-world_go',plain:true">推送仓库</a>
    </div>
    <!-- /搜索栏 -->
</body>